package inputDemo;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Demo6 {
    public static void main(String[] args) throws IOException {
        // 字符流
        Reader reader = new FileReader("d:/test.txt");
        char[] buffer = new char[1024];
        int len = reader.read(buffer);
        for(int i = 0; i < len; i++) {
            System.out.println(buffer[i]);
        }
        reader.close();
    }
}
